<extend name="Public:base" />
<block name="title"><title>节点列表</title></block>
<block name="script">
	<script type="text/javascript">
		$(document).ready(function(){
			$('#collapseTwo').addClass('in');
			$('#collapseOne').removeClass('in');
		});
	</script>
</block>
<block name="sidebar">
	<include file="Public:sidebar" />
</block>
<block name="content">
	<div id="content" class="col-sm-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4 class="panel-title"><i class="glyphicon glyphicon-header"></i>节点列表 <a href="{:U('Node/add', array('pid'=>I('pid',0)))}" class="pull-right"><i class="glyphicon glyphicon-plus">添加节点</i></a></h4>
			</div>

			<div class="panel-body">
				<table class="table table-hover table-bordered table-condensed">
					<tr>
						<td>序号</td>
						<td>名称</td>
						<td>显示名</td>
						<td>状态</td>
						<td>操作</td>
					</tr>
					<volist name='list' id="vo">
					<tr>
						<td>{$vo.id}</td>
						<td><a href="{:U('Node/index', array('pid'=>$vo['id']))}">{$vo['name']}</a></td>
						<td><a href="{:U('Node/edit', array('id'=>$vo['id']))}">{$vo['title']}</a></td>
						<td>
							<if condition="$vo['status'] eq 1"><span class="label label-success"><i class="glyphicon glyphicon-ok"></i></span>
							<else />
								<span class="label label-danger">
								<i class="glyphicon glyphicon-remove"></i></span>
							</if>
						</td>
						<td>
							<div class="btn-group btn-group-xs">
								<a href="{:U('Node/edit', array('id'=>$vo['id']))}" class="btn btn-warning">修改</a>
								<a href="{:U('Node/delete', array('id'=>$vo['id']))}" class="btn btn-danger">删除</a>
							</div>
						</td>
					</tr>
					</volist>
					<tr>
						<td colspan='7'>{$page}</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</block>

